package com.lqy.service.Inter;

import com.zzg.entity.Driver;

import java.util.List;

/**
 * @author lay
 * @version 1.0.0
 * @ClassName：DriverService
 * @Description: 车辆管理服务接口层
 * @date 2021/6/21
 **/
public interface DriverService {

    /**
     * 查询车辆
     * @return
     */
    public List<Driver> getDriver();

    /**
     * 分页查询
     * @param page
     * @param limit
     * @return
     */
    public List<Driver> getCouByPage(int page, int limit);

    /**
     * 新增车辆
     * @param driver
     * @return
     */
    public int insertDriver(Driver driver);

    /**
     * 修改车辆
     * @param driver
     * @return
     */
    public int updateDriver(Driver driver);

    /**
     * 删除车辆
     * @param driverId
     * @return
     */
    public int deleteDriver(String driverId);

    /**
     * 根据ID查询车辆
     * @param driverId
     * @return
     */
    public Driver getUserById(String driverId);

    /**
     * 模糊查询
     * @return
     */
    public List<Driver> getDrivers(Driver driver);

}
